﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace McePicasa
{
    [Serializable]
    public class PicasaException: Exception
    {
        public PicasaException():base()
        {
        }

        public PicasaException(string msg):base(msg)
        {
            Log.LogIt("PicasaException: " + msg);
        }

        public PicasaException(Exception exception)
        {
            Log.LogIt("PicasaException: " + exception.Message);
        }

        public PicasaException(String msg, Exception exception)
            : base(msg, exception)
        {
        }

        protected PicasaException(SerializationInfo info, StreamingContext context)
            :base(info, context)
        {
            //to-do
        }
    }
}
